﻿@using Telerik.Web.Mvc
@using Telerik.Web.Mvc.UI
@using Presentation.Web.Admin
@model Application.Admin.Dto.SightDto
@{
    ViewBag.subtitle = "景点详情" + (Model != null && !string.IsNullOrEmpty(Model.Name) ? "--" + Model.Name : "");
    ViewBag.title = "景点详情";
    ViewBag.sightid = Model != null ? Model.Id : 0;
    var strSelected = (Request["selected"] != null ? Request["selected"] : "0");
    var selected = 0;
    int.TryParse(strSelected, out selected);
    if (selected > 5)
    {
        selected = 0;
    }
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/JsHelper.js")" type="text/javascript"></script>
@{ Html.Telerik().TabStrip()
    .Name("PicUploadTabStrip")
    .Items(tabstrip =>
    {
        tabstrip.Add().Text("景点详情").Content(@<text> @Html.Partial("_SightUpdate", Model) </text>);
        tabstrip.Add().Text("景点图片列表").Action("sightpicindex", "sight", new { id = Model.Id });
        tabstrip.Add().Text("评论列表").Action("sightcommindex", "sight", new { id = Model.Id });
        tabstrip.Add().Text("用户签到列表").Action("sightsiginindex", "sight", new { id = Model.Id });
@*  //edited by yjihrp 2012.7.2.10.45  
        tabstrip.Add()
          .Text("景点商品列表")
          .Content(@<text> 5555
    </text>);
        tabstrip.Add()
            .Text("添加景点商品")
            .Content(@<text> 5555
    </text>);
    //end edited by yjihrp 2012.7.2.10.45
*@
    }).SelectedIndex(selected)
    .Render();
}